package com.hb.game.pk;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

import com.hb.game.pk.beans.BankInfo;
import com.hb.game.pk.beans.Login;
import com.hb.game.pk.utils.StatusBarUtils;

import java.util.ArrayList;
import java.util.List;

public class APP extends Application {
    private static final String LOG_TAG = "FRAME_LOGGER";
    protected static Context mContext;
    protected static Handler mHandler;
    protected static int mainThreadId;
    public static String uid;
    public static String Token = "";
    public static Login.DataBean userInfo;
    public static int statusBarHight;
    public static List<Integer> headResource;
    public static BankInfo.DataBean bankInfo;

    //    public static List<String> host;
//    public static List<String> socket;
    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();
        mHandler = new Handler();
        mainThreadId = android.os.Process.myTid();
        statusBarHight = StatusBarUtils.getStatusBarHeight(this);
//        host = new ArrayList<>();
//        host.add("http://hongbao.webziti.com");
//        host.add("http://game2.zllmqw.com/");
//        host.add("http://game3.zllmqw.com/");
//        socket = new ArrayList<>();
//        socket.add("ws://47.93.238.220:8238");
//        socket.add("ws://39.98.64.12:8238");
//        socket.add("ws://39.98.64.12:8238");

        init();
    }

    private void init() {

    }

    public static Context getContext() {
        return mContext;
    }

    public static Handler getHandler() {
        return mHandler;
    }

    public static int getMainThreadId() {
        return mainThreadId;
    }
}
